import { request } from '../utils/request'
// 获取oss权限
function getOssPolicy(fun) {
  return request({
    url: '/oss/policy',
    method: 'GET',
		data: {}
  }, fun)
}
// 登录
function wxLogin (data) {
  return request({
    url: '/api/login/small',
    method: 'POST',
    data: data
  })
}

function passLogin (data) {
  return request({
    url: '/api/login/login',
    method: 'POST',
    data: data
  })
}
module.exports = {
  getOssPolicy,
  wxLogin,
  passLogin
}